package com.emagic.manage.common.consts;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 状态常量类
 *
 * @author baoy
 * @version 1.0
 *          Create by 16/1/15 下午2:32
 */
public class Constants {
    public static final String HTTP_DNS_ACCOUNT = "156280";

    public static final String REPAIR_MODULE = "repair"; //报修服务
    public static final String COMPLAINT_MODULE = "complaint";//投诉建议
    public static final String VISITOR_MODULE = "visitor";//访客通行
    public static final String ANALYSIS_MODULE = "analysis";//数据分析
    public static final String QUALITY_MODULE = "quality";//品质
    public static final String EQUIPMENT_MODULE="equipment";//设备
    public static final String PATROL_MODULE="patrol";//巡更
    public static final String DOCUMENT_MODULE="document";//公文
    public static final String ATTENDANCE_MODULE="attendance";//考勤
    public static final String APPROVAL_MODULE="approval";//审批
    public static final String ORGANIZATION_MODULE="organization";//组织
    public static final String REPORT01="report01";//红色报表
    public static final String REPORT02="report02";//绿色报表
    public static final String REPORT03="report03";//蓝色报表

    public static final String NOTICE_TYPE_1014 = "1014"; //报修
    public static final String NOTICE_TYPE_1015 = "1015"; //投诉
    public static final String NOTICE_TYPE_1010 = "1010"; //圈子消息
    public static final String NOTICE_TYPE_1021 = "1021"; //热卖订单
    public static final String NOTICE_TYPE_1001 = "1001"; //公告
    public static final String NOTICE_TYPE_1019 = "1019"; //圈子评论
    public static final String NOTICE_TYPE_1018 = "1018"; //圈子点赞
    public static final String NOTICE_TYPE_1013 = "1013"; //系统
    public static final String NOTICE_TYPE_2018 = "2018"; //好友消息

    public static final String RESULT_CLIPPED_BITMAP = "result_clipped_bitmap";


    public static final String NOTICE_TYPE_0 = "0";         //通知
    public static final String NOTICE_TYPE_1 = "1";         //公告

    public static final String WEB_SERVICE = "Service";      //服务协议
    public static final String WEB_QUESTION = "Question";    //常见问题
    public static final String WEB_INTEGRAL = "Integral";    //积分说明

    public static final String EXTRA_DATA = "extra:data";
    public static final String EXTRA_BUILDINGS = "extra:buildings";
    public static final String EXTRA_TYPES = "extra:types";
    public static final String EXTRA_COMMUNITY = "extra:community";

    public static final String TYPE_UNCLIENT = "unclient";
    public static final String TYPE_UNRELEASE = "unrelease";


    //集团验房-房屋状态
    public static final String GROUP_HOUSE_INSPECTION_STATUS_UNCHECK = "0"; //未验房
    public static final String GROUP_HOUSE_INSPECTION_STATUS_WARNING = "1"; //有问题
    public static final String GROUP_HOUSE_INSPECTION_STATUS_APPROVED = "2";//通过
    public static final String GROUP_HOUSE_INSPECTION_STATUS_FINISH = "3";//问题已解决

    //集团验房-区域类型
    public static final String PUBLIC_AREA = "1";      //公共区域
    public static final String OTHER_AREA = "0";      //其它区域

    //投拆状态
    public static final String COMPLAIN_STATUS_00 = "00";         //投拆受理
    public static final String COMPLAIN_STATUS_01 = "01";         //投拆处理
    public static final String COMPLAIN_STATUS_02 = "02";         //回访处理
    public static final String COMPLAIN_STATUS_03 = "03";         //投拆审核
    public static final String COMPLAIN_STATUS_04 = "04";         //投拆完成
    public static final String COMPLAIN_STATUS_05 = "05";         //已评价

    //报修状态
    public static final String REPAIR_STATUS_00 = "00";             //报修受理
    public static final String REPAIR_STATUS_01 = "01";             //报修待处理
    public static final String REPAIR_STATUS_02 = "02";             //报修待处理(取消)
    public static final String REPAIR_STATUS_03 = "03";             //物业主任待处理(取消)
    public static final String REPAIR_STATUS_04 = "04";             //物业领导待处理(取消)
    public static final String REPAIR_STATUS_05 = "05";             //集团工程管理部待处理(取消)
    public static final String REPAIR_STATUS_06 = "06";             //上报被打回(取消)
    public static final String REPAIR_STATUS_07 = "07";             //待付款(取消)
    public static final String REPAIR_STATUS_08 = "08";             //报修完成待评价
    public static final String REPAIR_STATUS_09 = "09";             //已完成
    public static final String REPAIR_STATUS_10 = "10";             //施工方待处理(取消)
    public static final String REPAIR_STATUS_11 = "11";             //项目工程部待处理(取消)
    public static final String REPAIR_STATUS_12 = "12";             //物业工程部维修人员待处理(取消)
    public static final String REPAIR_STATUS_13 = "13";             //物业工程部领导待处理(取消)
    public static final String REPAIR_STATUS_21 = "21";             //物业主任待处理
    public static final String REPAIR_STATUS_22 = "22";             //物业工程部处理

    //验房-处理状态
    public static final String HOUSE_INSPECTION_STATUS_00 = "00";       //待受理
    public static final String HOUSE_INSPECTION_STATUS_01 = "01";       //处理中
    public static final String HOUSE_INSPECTION_STATUS_02 = "02";       //处理中
    public static final String HOUSE_INSPECTION_STATUS_03 = "03";       //待复验
    public static final String HOUSE_INSPECTION_STATUS_04 = "04";       //已完成
    public static final String HOUSE_INSPECTION_STATUS_05 = "05";       //处理中
    public static final String HOUSE_INSPECTION_STATUS_07 = "07";       //审核

    //验房类型
    public static final int HOUSE_INSPECTION_TYPE_GROUP = 0;                //集团验房
    public static final int HOUSE_INSPECTION_TYPE_PROPRIETOR = 1;           //业主验房

    //验房部位-返回extra key
    public static final String RESULT_EXTRA_KEY_CODE = "extra:code";        //一级code
    public static final String RESULT_EXTRA_KEY_NAME = "extra:name";     //一级名称
    public static final String RESULT_EXTRA_KEY_PCODE = "extra:pcode";     //二级code
    public static final String RESULT_EXTRA_KEY_PNAME = "extra:pname";     //二组名称

    //是否有处理权限
    public static final String AUTH_YES = "1";           //有
    public static final String AUTH_NO = "0";            //否

    //评价状态
    public static final String EVALUATE_STATUS_YES = "1";   //满意
    public static final String EVALUATE_STATUS_NO = "0";   //不满意

    //表示从哪个页面进
    public static final String FROM_INSPECTION = "0";   //验房
    public static final String FROM_REPAIR = "1";       //报修

    //是否待办常量
    public static final String PENDING_YES = "1";       //待办
    public static final String PENDING_NO = "0";        //非待办

    //设备离线更新状态
    public static final String NOT_DOWNLOADED = "0";    //未下载
    public static final String NEED_UPDATING = "1";     //要更新
    public static final String DOWNLOADED_NEWEST = "2"; //已下载且不需要更新

    public static final String RESULT_KEY_HOUSE = "result:house";

    public static final String PREFIX_HOUSE = "visitor|"; //条形码前缀

    public static final String RESULT_EXTRA_USER_ID = "result:user_id";
    public static final String RESULT_EXTRA_USER_NAME = "result:user_name";
    public static final String RESULT_EXTRA_ROLE_ID = "result:role_id";
    public static final String RESULT_EXTRA_ROLE_NAME = "result:role_name";

    public static final String SMS_TYPE_RETURNPWD = "returnpwd";//密码找回

    //派工类型
    public enum DispatchingType implements Serializable {
        group, proprietor, repair, complain, worker
    }
}
